//导入request
import requset from "@/utils/requset";
//封装函数
export const getDetailAPI = (id)=>{
    return requset({url:'/h5/interview/show',params:{
        id,
    }})
}
//点赞收藏函数封装
export const updateDetaliAPI = (id,optType) =>{
    return requset({url:'/h5/interview/opt',
    method:'post',
    data:{
        id,
        optType
    },
  });
};
//封装收藏、喜欢列表函数
export const getCollect = (optType,page)=>{
    return requset({url:'/h5/interview/opt/list',params:{
        optType,
        pageSize:20,
        page,
    }})
}